package com.dianqiu.common.dao.impl;

import java.util.List;
import org.springframework.stereotype.Component;
import com.dianqiu.base.dao.impl.BaseDao;
import com.dianqiu.common.bean.DqMatchPoolTO;
import com.dianqiu.common.dao.DqMatchPoolDao;

@Component("dqMatchPoolDao")
public class DqMatchPoolDaoImpl extends BaseDao implements DqMatchPoolDao{

	public List<DqMatchPoolTO> getAllMatchPool() {
		return this.getHibernateTemplate().find(" from DqMatchPoolTO matchPool " +
												" left outer join fetch matchPool.dqMatch match " +
												" left outer join fetch match.dqLeagues league " +
												" left outer join fetch match.dqClubsByHomeClbId homeClb " +
												" left outer join fetch match.dqClubsByAwayClbId awayClub ");
	}
	public void save(DqMatchPoolTO dqMatchPoolTO)
	{
		 this.getHibernateTemplate().save(dqMatchPoolTO);
	}
	
	
}